export const toLocalDate = (rawTime) => {
    const date = new Date(rawTime)
    const now = Date.now()
    const dateTimestamp = date.getTime()
    let jet = now - dateTimestamp
    jet = Math.floor(jet / 1000)
    if (jet/60 < 1) {
        return '刚刚'
    } else if (jet/60 <= 60) {
        return Math.floor(jet/60)+'分钟'
    } else if (jet/60/60 <= 24) {
        return Math.floor(jet/60/60)+'小时'
    } else {
        return Math.floor(jet/60/60/24)+'天'
    }
}